package cn.com.elite;

import java.util.Date;

import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;

import dnapay.common.Strings;
import dnapay.common.ToolKit;
import dnapay.service.client.PosMessage;
import dnapay.service.client.TransactionClient;
import dnapay.service.client.TransactionType;


public class test {
	public static void main(String[] args) throws Exception{
//		TransactionClient tm=new TransactionClient("http://10.2.19.174:9891/services/OrderServerRSA","");
//	    tm.setTransactionType(TransactionType.CA);
//		tm.setServerCert(ToolKit.getPropertyFromFile("GDYILIAN_CERT_PUB_64")); 
//		System.setProperty("javax.net.ssl.trustStore", ToolKit.getPropertyFromFile("javax.net.ssl.trustStore"));
//	    System.setProperty("javax.net.ssl.trustStorePassword", ToolKit.getPropertyFromFile("javax.net.ssl.trustStorePassword"));
//	    tm.setMerchantNo("12"+"502020000515");
//	    tm.setMerchantPassWD("2FCD6262E6A646FF");
//	    tm.setTerminalNo("05023141");
//	    PosMessage pm=tm.orderQuery(getSerialNO(),"","12100002959065201301151511589168189",Strings.random(24));
//	    System.out.println("pm.getRespCode():"+pm.getRespCode());
		String a="1234";
		System.out.println(a.substring(0, 2));
	}
	public static String getSerialNO() {
        return dnapay.common.DateFormatter.HHmmss(new java.util.Date());
    }
}
